Introduce typedoc into the repository #268
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces typedoc for all packages within the repository, serving as a baseline for contributors docs / reference docs on the Protokit website. It also introduces a way to generate code coverage reports per package, or globally.
Typedoc
Some packages/plugins used by typedoc have missmatched peer dependency versions, until that is addressed you'll need to install dependencies using
npm i --force.To generate markdown typedocs run the following package from the root:
Typedoc is configured to provide markdown outputs, which are then consumed by
proto-kit/website. Additionally the markdown output has an extra header for purposes of displaying sidebar items correctly on the website itself. (preserving "model" names, such as function names)Code coverage
Code coverage reporting can be ran by the following command from package root:
Code coverage rules/thresholds can be configured in
jest.config.cjs. All thresholds are enforced per package, not globally. Reports are generated and reported per package during testing, and can be summed up together using the commands above.